package pwr.inf.imt;

import java.util.List;

public class DataLead {
	private String leadName;
	private List<Integer> parts;
	@Override
	public String toString() {
		return leadName;		
	}
	public boolean equals(Object obj){
		if (this.toString() == obj.toString()) 
			return true;
		else
			return false;		
	}	
	public void setLeadName(String newLeadName) {
		leadName = newLeadName;
	}
	public String getLeadName() {
		return leadName;
	}
	public void setParts(List<Integer> parts) {
		this.parts = parts;
	}
	public List<Integer> getParts() {
		return parts;
	}
	@SuppressWarnings("unused")
	private DataLead(){
	}
	public int getPartsCount() {
		return parts.size();
	}
	public DataLead(String newLeadName, List<Integer> newParts) {
		leadName = newLeadName;
		parts = newParts;
	}
}
